/* Copyright (c) 2025-2030 ShawnLi*/

import { ISettings } from '~/interfaces';
import { app } from 'electron';

export const DEFAULT_SEARCH_ENGINES = [
  {
    name: 'DuckDuckGo',
    url: 'https://duckduckgo.com/?q=%s',
    keywordsUrl: 'duckduckgo.com',
    keyword: 'duckduckgo.com',
    icon: '',
  },
  {
    name: 'Google',
    url: 'https://www.google.com/search?q=%s',
    keywordsUrl: 'http://google.com/complete/search?client=chrome&q=%s',
    keyword: 'google.com',
    icon: '',
  },
  {
    name: 'Bing',
    url: 'https://www.bing.com/search?q=%s',
    keywordsUrl: '',
    keyword: 'bing.com',
    icon: '',
  },
  {
    name: 'Ecosia',
    url: 'https://www.ecosia.org/search?q=%s',
    keywordsUrl: '',
    keyword: 'ecosia.org',
    icon: '',
  },
];

export const DEFAULT_SETTINGS: ISettings = {
  theme: 'meow-dark',
  darkContents: false,
  shield: true,
  multrin: true,
  animations: true,
  bookmarksBar: true,
  suggestions: true,
  themeAuto: true,
  httpsEnforce: false,
  searchEngines: DEFAULT_SEARCH_ENGINES,
  searchEngine: 0,
  startupBehavior: {
    type: 'empty',
  },
  warnOnQuit: false,
  version: 7,
  downloadsDialog: false,
  downloadsPath: app
    ? app.getPath('downloads')
    : process.type !== 'browser' && process.type !== 'renderer'
      ? require('@electron/remote').app.getPath('downloads')
      : app
        ? app.getPath('downloads')
        : '',
  newtab: {
    news: false,
    weather: false,
  },
  doNotTrack: true,
  ignoreCertificate: false,
  autoplay: true,
  hardwareacceleration: true,
  globalPrivacyControl: true,
  topBarVariant: 'default',
  invisibleTabs: undefined,
  changelog: undefined,
};
